﻿using System;

namespace _批量插入上万条数据
{
    public static class StringExtend
    {
        public static DateTime ToDateTime(this string s)
        {
            return DateTime.TryParse(s, out _) ? Convert.ToDateTime(s) : DateTime.MinValue;
        }
    }
}
